package com.service.auth;

import java.util.List;

public interface IUserRoleService {
	
	/**
	 * 根据用户ID 查询出用户所有的角色ID
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	public List<String> getRolesByUserId(Integer userId) throws Exception;
	
	
	/**
	 * 删除用户所有的角色
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public boolean delUserRolesByUserId(Integer userId) throws Exception;
	
	
	/**
	 * 插入用户角色
	 * @param userId
	 * @param roleId
	 * @return
	 * @throws Exception
	 */
	public boolean insertUserRoles(Integer userId,Integer roleId) throws Exception;
	
	
	
}
